home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvinit.cpp < prev    next >
C/C++ Source or Header  |  1998-01-05  |  3KB  |  172 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVINIT.CPP                           |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Startup initialization               |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. #define uses_app
  16. #define uses_clock
  17. #define uses_colors
  18. #define uses_cmdgen
  19. #define uses_comlin
  20. #define uses_config
  21. #define uses_dc
  22. #define uses_desk
  23. #define uses_dialog
  24. #define uses_icons
  25. #define uses_ini
  26. #define uses_lbox
  27. #define uses_memmon
  28. #define uses_stddlg
  29. #define uses_system
  30. #define uses_table
  31.  
  32. #include "PVuses.h"
  33.  
  34. #if !defined( NOPARAM ) || !defined( NOCONFIG )
  35. void init_startup( int argc, char *argv[] )
  36. {
  37. #endif
  38. #ifndef NOPARAM
  39.   __init_comlin( argc, argv );
  40. #endif
  41. #ifndef NOCONFIG
  42.   __init_config();
  43. #endif
  44. #if !defined( NOPARAM ) || !defined( NOCONFIG )
  45. }
  46. #endif
  47.  
  48. #ifndef NOPARAM
  49. void init_comlin( int argc, char *argv[] )
  50. {
  51.   __init_comlin( argc, argv );
  52. }
  53. #endif
  54.  
  55. #ifndef NOCONFIG
  56. void init_config( void )
  57. {
  58.   __init_config();
  59. }
  60. #endif
  61.  
  62. void init_system( void )
  63. {
  64.   __init_system();
  65. }
  66.  
  67. void init_drivers( void )
  68. {
  69.   __init_drivers();
  70. }
  71.  
  72. void init_dc( void )
  73. {
  74.   __init_colors();
  75.   __init_icons();
  76.   __init_dc();
  77. }
  78.  
  79. void init_icons( void )
  80. {
  81.   __init_icons();
  82. }
  83.  
  84. void init_colors( void )
  85. {
  86.   __init_colors();
  87. }
  88.  
  89. void init_application( void )
  90. {
  91.   __init_application();
  92.   __init_desktop();
  93. #if !defined( NOTOOLS ) || !defined( NOMENUS )
  94.   __init_cmdgen();
  95. #endif
  96. #ifndef NOCLOCK
  97.   __init_clock();
  98. #endif
  99. #ifdef MEMMON
  100.   __init_mem();
  101. #endif
  102.   __resize_application();
  103. }
  104.  
  105. void init_desktop( void )
  106. {
  107.   __init_desktop();
  108. }
  109.  
  110. #if !defined( NOTOOLS ) || !defined( NOMENUS )
  111. void init_cmdgen( void )
  112. {
  113.   __init_cmdgen();
  114. }
  115. #endif
  116.  
  117. #ifndef NOCLOCK
  118. void init_clock( void )
  119. {
  120.   __init_clock();
  121. }
  122. #endif
  123.  
  124. #ifdef MEMMON
  125. void init_mem( void )
  126. {
  127.   __init_mem();
  128. }
  129. #endif
  130.  
  131. #if !defined( NOPARAM ) || !defined( NOCONFIG )
  132. void tini_startup( void )
  133. {
  134. #endif
  135. #ifndef NOPARAM
  136.   __tini_comlin();
  137. #endif
  138. #ifndef NOCONFIG
  139.   __tini_config();
  140. #endif
  141. #if !defined( NOPARAM ) || !defined( NOCONFIG )
  142. }
  143. #endif
  144.  
  145. #ifndef NOPARAM
  146. void tini_comlin( void )
  147. {
  148.   __tini_comlin();
  149. }
  150. #endif
  151.  
  152. #ifndef NOCONFIG
  153. void tini_config( void )
  154. {
  155.   __tini_config();
  156. }
  157. #endif
  158.  
  159. void init_screen( void )
  160. {
  161.   __set_startup_video_mode();
  162. #if !defined( NOICONS ) && !defined( HGR )
  163.   set_graph_chars();
  164. #endif
  165.   con_messages = 0;
  166. }
  167.  
  168. void init_editors( void )
  169. {
  170.   __init_editors();
  171. }
  172.